import {createRouter, createWebHistory} from 'vue-router'
import HomeView from '../views/HomeView.vue'
import AboutView from '../views/AboutView.vue'
import Count from '../views/Count.vue'
import Login from '../views/Login.vue'

const routes = [
    {
      path:'/home',
      name:'home',
      component:HomeView
    },
    {
      path : '/about',
      name : 'about',
      component : AboutView
    },
    {
      path : '/count',
      name : 'count',
      component : Count
    },
    {
      path : '/login',
      name : 'login',
      component : Login
    }
]
  

const router = createRouter({
    history : createWebHistory(),
    routes
})

export default router